package com.wfx.controller;


import com.wfx.entity.WxbGoods;
import com.wfx.service.IWxbGoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-21
 */
@RestController
@CrossOrigin
@RequestMapping("/goods")
@Api(description = "商品管理")
public class WxbGoodsController {

    @Autowired
    private IWxbGoodsService iWxbGoodsService;
    @ApiOperation("查询商品名")
    @PostMapping("/findByCustomerId")
    public List<WxbGoods> findByCustomerId(@RequestBody WxbGoods wxbGoods){
        return iWxbGoodsService.findByCustomerId(wxbGoods);
    }

}
